package 装饰器模式;

/**
 * 蒸 装饰器
 */
public class SteamedFood extends FoodDecoration {

    private Food food;

    public SteamedFood(Food food) {
        this.food = food;
    }

    @Override
    public String cook() {
        return getDecoration() + food.cook();
    }

    private String getDecoration(){
        return "蒸";
    }
}
